package com.atguigu.tingshu.order.closeorder.zset;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author:huzhongkui
 * Date: 2025-03-28 星期五 18:33:43
 * Description:
 */
@RestController
@RequestMapping("/temp/v1")
public class OrderInfoTempController {

    @Autowired
    private DelayOrderCloseZSetService delayOrderCloseService;


    @PostMapping("/createOrder/{orderId}")
    public String createOrder(@PathVariable(value = "orderId") String orderId) {

        delayOrderCloseService.addDelayOrder(orderId, 60);

        return "success";
    }
}
